package uk.co.richardwkirk.funnels;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JPanel;

public class FunnelDisplayPanel extends JPanel implements ActionListener {
    
	private int newNodeSuffix = 1;
    
    private static String ADD_COMMAND = "add";
    private static String REMOVE_COMMAND = "remove";
    private static String CLEAR_COMMAND = "clear";
    
    public FunnelDisplayPanel() {
        super(new BorderLayout());
        
        //Create the components.
        JButton addButton = new JButton("Add");
        addButton.setActionCommand(ADD_COMMAND);
        addButton.addActionListener(this);
        
        JButton removeButton = new JButton("Remove");
        
        // ...
        
        JButton clearButton = new JButton("Clear");
        
        // ...
        
        //Lay everything out.
        //treePanel.setPreferredSize(
        //    new Dimension(300, 150));
        //add(treePanel, BorderLayout.CENTER);

//        JPanel panel = new JPanel(new GridLayout(0,3));
//        panel.add(addButton);
//        panel.add(removeButton); 
//        panel.add(clearButton);
//        add(panel, BorderLayout.SOUTH);
    }
    // ...

	@Override
	public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub
		
	}
}